<div id="page-content">
	<div id="page-content-wrapper">
    	<div class="inner-page-title">
        	<h2>Class management</h2>
            <span>Add Class Information</span>
        </div>
        <div id="add-users-data">
        	<div class="column-content-box">
        	<form class="forms"  method="get" action="/admin/attendance">
				<div >
					<p><label>Class: </label>
					<select name="s_class" id="s_class" class="field select small" onchange="this.form.submit()">
						<option>------- Select -------</option>
						<?php for ($i = 0; $i <count($this->class_list); $i++) {?>
	    				<option value="<?php echo $this->class_list[$i]['id'];?>">
							<?php echo $this->class_list[$i]['class_name'];?>
						</option>
						<?php }?>
					</select>
					<label>Date: </label><?php echo date('d-m-Y');?>
					</p>
				</div>
				</form>
                <div class="content-box content-box-header ui-corner-all">
                	<div class="ui-state-default ui-corner-top ui-box-header">
                    	<span class="ui-icon float-left ui-icon-notice"></span>
						Daily Class Attendance 
                    </div>
                    <div class="content-box-wrapper">
                    	<?php if(!empty($this->messages)) {?>
						<div class="response-msg success ui-corner-all">
						<?php
						foreach ($this->messages as $message)
						{?>
						<span><?php echo $message ?></span>
						<?php } ?>
							Admission details saved successfully
						</div>
						<?php }?>
						<div class="hastable">
						<form action="/admin/attendance/presentstatus" method="post">
							<table id="users">
								<thead>
									<tr>
										<th>Student Name</th>
										<th>Present Status</th>
									</tr>
								</thead>
								<tbody>
								<?php foreach($this->student_list as $student_list){?>
								<tr>
									<td><?php echo $student_list['fname'].' '.$student_list['lname'];?></td>
									<td><input type="hidden" value="<?php echo $student_list['id'];?>" name="student_id[]" />
									    <input type="checkbox" name="status[<?php echo $student_list['id'];?>]" value="on"/>
									</td>
								</tr>
								<?php }?>
								</tbody>
							</table>
						<input type="hidden" name="class_id" value="<?php echo $_GET['s_class'];?>"/>
						<input class="submit ui-state-default ui-corner-all float-right ui-button" type="submit" value="Submit"/>
						<div class="clear"></div>
						</form>
						</div>
                            <!-- <form class="forms" id="academicform" method="post" action="/admin/academic/save">
                            <fieldset>
                                <ul>
                                    <li>
                                        <label class="desc" for="a_start">Academic year Starts on:</label>
                                        <div><input id="a_start" class="field text full" name="a_start" /></div>
                                    </li>
                                    <li>
                                        <label class="desc" for="a_end">Academic year Ends on:</label>
                                        <div><input id="a_end" class="field text full" name="a_end" /></div>
                                    </li>
                                    <li>
                                        <input class="submit ui-state-default ui-corner-all float-right ui-button" type="submit" value="Submit"/>
                                    </li>
                                </ul>
                            </fieldset>
                             </form> -->
                   </div>
            	</div>
            </div>
        </div>
        <!-- <table id="academic_list" ></table>
				<div id="academic_list_pager"></div> -->
        <?php echo $this->leftsidebar; ?>
        <div class="clear"></div>
    </div>
</div>